<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>0420</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 循环对象数组 -->
        <ul>
            <li v-for="(user, index) in users">
                {{index + 1}}: - {{user.id}} - {{user.name}} -- {{user.age}} -- {{user.male}}
            </li>
        </ul>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                users: [
                    {
                        id: '0001',
                        name: "zhanghan",
                        age: 12,
                        male: true
                    },
                    {
                        id: '0002',
                        name: "zhangmeng",
                        age: 69,
                        male: true
                    },
                    {
                        id: '0003',
                        name: "shjdhfakjshd",
                        age: 689,
                        male: false
                    }
                ]
            }
        })
    </script>
</body>

</html>